package cn.tedu.review;

import org.junit.Test;

import java.util.Arrays;

public class TestStudent {

    @Test
    public void getStu(){
        Student s1 = new Student("张三",'男',50);
        Student s2 = new Student("李四",'男',50);
        Student s3 = new Student("李四",'男',50);
        Student s4 = new Student("张三",'男',50);
        Student[] stu = {s1,s2,s3,s4};
        Student[] stu1 = new Student[]{s1,s2,s3};

        Student[] stu2 = new Student[4];
        stu[0] = s1;

        for (int i = 0; i < stu.length; i++) {
            System.out.println(stu[i].getName());
            System.out.println(stu[i].getGender());
            System.out.println(stu[i].getAge());

//            System.out.println(stu[i]);



        }
    }
}
